/// 很多测试都需要弄一个临时的class，那么这里就可以用现成的
part of '../test.dart';

/// 假冒的人，写好了一些常用的方法，方便测试
class PseudoPeople implements IdentityOld {
  @override
  final String id;
  String name;
  int age;

  PseudoPeople(this.id, this.name, this.age);

  factory PseudoPeople.fromRaw(Json raw) => PseudoPeople(
        raw["id"],
        raw["name"],
        raw["age"],
      );

  @override
  Json toJson() => {
        "id": id,
        "name": name,
        "age": age,
      };
}

/// 变量名直接跟随中文意思，从3开始计数
final pseudoThree = PseudoPeople("3", "张三", 30);
final pseudoFour = PseudoPeople("4", "李四", 40);
final pseudoFive = PseudoPeople("5", "王五", 50);

final List<PseudoPeople> pseudoPeople = [pseudoThree, pseudoFour, pseudoFive];
